var oWb = document.getElementsByClassName('wb')[0];
var oWeibo = document.getElementsByClassName('weibo')[0];

oWeibo.onmouseover = function () {
    oWb.style.background = 'url(public/assets/img/redweibo.png)';
}
oWeibo.onmouseout = function () {
    oWb.style.background = 'url(public/assets/img/sprite.png) -18px 0 ';
}

window.onscroll = function () {
    if (document.documentElement.scrollTop + document.body.scrollTop > 150) {
        document.getElementsByClassName("scrollup")[0].style.display = "block";
    }
    else {
        document.getElementsByClassName("scrollup")[0].style.display = "none";
    }
}